package com.carleasoft.mps.adu.business.user.bean.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户部门关系表
 * </p>
 *
 * @author ztm
 * @since 2021-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_authority_user_dept")
@ApiModel(value="AuthorityUserDept对象", description="部门信息表")
public class AuthorityUserDept implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户code")
    @TableField("USER_CODE")
    private String userCode;
    
    @ApiModelProperty(value = "部门code")
    @TableField("DEPT_CODE")
    private String deptCode;

    /**
     * 排序值
     */
    @TableField("SORT")
    private Integer sort;

    /**
     * 排序权重
     */
    @TableField(value = "SORT_DATE")
    private Long sortDate;

}
